# @Filename:    sample1
# @Author:      王佳伟
# @Time:        2025-02-25 16:56
# @Describe:    日志记录
import logging


def configure_logging(log_file):
    logging.basicConfig(filename=log_file, level=logging.DEBUG)


def log_info(message):
    logging.info(message)


if __name__ == '__main__':
    log_file = 'test.log'
    configure_logging(log_file)
    log_info('这是一条日志记录')
